package com.woniuxy;

import com.woniuxy.entity.RbacManager;
import com.woniuxy.service.RbacManagerService;
import com.woniuxy.service.impl.RbacManagerServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author 罗蔚
 * @Date 2022/3/29 19:17
 * @Description TODO
 */
public class RbacManagerTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        RbacManagerService rbacManagerService = applicationContext.getBean("rbacManagerServiceImpl", RbacManagerService.class);
        int i = rbacManagerService.addOne(new RbacManager("rose", "123", "y"));
        if (i != 0) {
            System.out.println("添加成功");
        }
    }
}
